/*
 * Transport.java
 *
 * Created on 7 październik 2007, 12:51
 *
 */

package kosciak.blip4j;

/**
 * <CODE>Transport</CODE> object represents a transport in Blip.pl
 * Contains information how an Update was sent.
 * @author Wojtek 'KosciaK' Pietrzok
 * @since 0.1
 */
public abstract class Transport {
    
    private int id;
    private String name;
    
    /**
     * Creates a new instance of Transport
     * @param id an Id of a Transport
     * @param name a name of a Transport
     */
    protected Transport(int id, 
                        String name) {
        
        this.id = id;
        this.name = name;
    }

    /**
     * Gets Transport's Id
     * 
     * 1 - E-mail
     * 2 - SMS
     * 3 - Jabber
     * 4 - ?
     * 5 - Gadu-Gadu
     * 6 - WWW (kokpit)
     * 7 - API
     * @return an Id of a Transport
     */
    public int getId() {
        return id;
    }

    /**
     * Gets Transport's name
     * @return a name of a Transport
     */
    public String getName() {
        return name;
    }
    
    @Override
    public String toString() {
        return getName();
    }

}
